package cn.cvzhanshi.wechatpush.config;

import cn.cvzhanshi.wechatpush.util.IpUtil;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.net.SocketException;
import java.util.HashMap;


@Component
public class JDDRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws SocketException {
        System.out.println("IP地址：" + IpUtil.getLocalIp4Address().get().toString().replaceAll("/", ""));
        System.out.println();
        System.out.println();
        System.out.println("--------------------------测试执行--------------------------");
        Pusher.push(new HashMap<>(), "osvWZ5jE5LBeDdGpwjHaE-vxjJac");
    }

}

